package com.ddwl.common.mongodb;

import org.springframework.core.convert.converter.Converter;

import java.math.BigDecimal;

/**
 * @author Fu Zhaohui
 */
public class DoubleToBigDecimalConverter implements Converter<Double, BigDecimal> {

    @Override
    public BigDecimal convert(Double source) {
        return BigDecimal.valueOf(source);
    }
}